package nosql

import "github.com/go-redis/redis/v8"

var redisClient *redis.Client

func init() {
	client := redis.NewClient(&redis.Options{
		Addr:     "192.168.31.65:6379",
		Password: "", // no password set
		DB:       0,  // use default DB
	})
	redisClient = client
}

// 获取redis 实例
func Instance() *redis.Client {
	return redisClient
}
